package com.sh.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
* @comments
* @author  zg
* @date 2018年4月5日
*/
//@Configuration
@Component
@PropertySource("classpath:conf.properties")
public class SysConfig {
	
	@Value("${mqtt.host}")
	private String mqttHost;
	
	@Value("${mqtt.userName}")
	private String mqttUsername;
	
	@Value("${mqtt.passWord}")
	private String mqttPassWord;
	
	@Value("${mqtt.clientId}")
	private String mqttClientId;
	
	@Value("${mqtt.connectionTimeout}")
	private String mqttConnectionTimeout;
	
	@Value("${mqtt.keepAliveInterval}")
	private String mqttKeepAliveInterval;
	

	public String getMqttHost() {
		return mqttHost;
	}

	public void setMqttHost(String mqttHost) {
		this.mqttHost = mqttHost;
	}

	public String getMqttUsername() {
		return mqttUsername;
	}

	public void setMqttUsername(String mqttUsername) {
		this.mqttUsername = mqttUsername;
	}

	public String getMqttPassWord() {
		return mqttPassWord;
	}

	public void setMqttPassWord(String mqttPassWord) {
		this.mqttPassWord = mqttPassWord;
	}

	public String getMqttClientId() {
		return mqttClientId;
	}

	public void setMqttClientId(String mqttClientId) {
		this.mqttClientId = mqttClientId;
	}

	public String getMqttConnectionTimeout() {
		return mqttConnectionTimeout;
	}

	public void setMqttConnectionTimeout(String mqttConnectionTimeout) {
		this.mqttConnectionTimeout = mqttConnectionTimeout;
	}

	public String getMqttKeepAliveInterval() {
		return mqttKeepAliveInterval;
	}

	public void setMqttKeepAliveInterval(String mqttKeepAliveInterval) {
		this.mqttKeepAliveInterval = mqttKeepAliveInterval;
	}
	

	
}
